From 65c89f052be556aa4a344a75695f2b2634457a8a Mon Sep 17 00:00:00 2001 From: Benjamin Mintz Date: Wed, 9 Dec 2015 23:12:05 -0600 Subject: Put the entire compile.sh script in a code block for security This makes sure that sh will error out if the connection is interrupted. See here: https://www.seancassidy.me/dont-pipe-to-your-shell.html --- compile.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compile.sh b/compile.sh index e5a164603..1bd8a4870 100755 --- a/compile.sh +++ b/compile.sh @@ -1,5 +1,6 @@ #!/bin/sh #|| goto :windows_detected +{ # put the whole thing in a block so as not to behave weirdly if interrupted set -e # Do we already have a repo? @@ -206,3 +207,4 @@ exit 0 echo "This script is not available for Windows yet, sorry." echo "You can still download the Windows binaries from: http://cuberite.org" echo "You can also manually compile for Windows. See: https://github.com/cuberite/cuberite" +} -- cgit v1.2.3